package com.zy.ipanalysis.service;

import com.zy.ipanalysis.dao.IspDao;
import com.zy.ipanalysis.model.Isp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by ZYDR on 2015/12/26.
 */
@Service
public class IspService {
    @Autowired
    IspDao ispDao;
    public void insert(Isp isp){
        ispDao.insert(isp);
    }
    public int getIspId(String ispName){
        return ispDao.getIspId(ispName);
    }
    public String getIspName(int ispId){
        return ispDao.getIspName(ispId);
    }
    public List<Integer> queryIspIdList(){
        return ispDao.queryIspIdList();
    }
    public int count(){
        return ispDao.count();
    }

}
